<?php

	function tourGET($request) {
		if ( (!$request->getArgs) || $request->getArgs['id'] == "" ) {

			$sights[] = array("id" => 1, 	"name" => "Cristo Redentor" , 							"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/cristo.png");
			$sights[] = array("id" => 2, 	"name" => "P&atilde;o de A&ccedil;&uacute;car" , 		"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/pao-de-acucar.png");
			$sights[] = array("id" => 3, 	"name" => "Arcos da Lapa" , 							"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/arcos.png");
			$sights[] = array("id" => 4, 	"name" => "Jardim Bot&acirc;nico" , 					"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/jardim-botanico.png");
			$sights[] = array("id" => 5, 	"name" => "Parque Lage" , 								"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/parque-lage.png");
			$sights[] = array("id" => 6, 	"name" => "Morro da Urca" , 							"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/morro-da-urca.png");
			$sights[] = array("id" => 7, 	"name" => "Quinta da Boa Vista" , 						"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/quinta-da-boa-vista.png");
			$sights[] = array("id" => 8, 	"name" => "Samb&oacute;dromo" , 						"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/sambodromo.png");
			$sights[] = array("id" => 9, 	"name" => "Lagoa Rodrigo de Freitas" , 					"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/lagoa.png");
			$sights[] = array("id" => 10, 	"name" => "Copacabana" , 								"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/copacabana.png");
			$sights[] = array("id" => 11, 	"name" => "Obras do Maracan&atilde;"  , 				"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/maracana.png");
			$sights[] = array("id" => 12, 	"name" => "Engenh&atilde;o"  , 							"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/engenhao.png");
			$sights[] = array("id" => 13, 	"name" => "Floresta da Tijuca" , 						"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/floresta-da-tijuca.png");
			$sights[] = array("id" => 14, 	"name" => "Teatro Municipal"  , 						"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/teatro-municipal.png");
			$sights[] = array("id" => 15, 	"name" => "Catedral de S&atilde;o Sebasti&atilde;o", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/catedral.png");
			$sights[] = array("id" => 16, 	"name" => "Santa Teresa" , 								"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/santa-teresa.png");
			$sights[] = array("id" => 17, 	"name" => "Igreja da Penha" , 							"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/igreja-da-penha.png");
			$sights[] = array("id" => 18, 	"name" => "Ipanema" , 									"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/ipanema.png");
			$sights[] = array("id" => 19, 	"name" => "Planet&aacute;rio da G&aacute;vea" , 		"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/planetario.png");
			$sights[] = array("id" => 20, 	"name" => "Vista Chinesa" , 							"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/vista-chinesa.png");
			header(
		"Status: 200 Success", true, 200);
			return $sights;
		} else {
			
			$sights[1]  = array("id" => 1, 		"name" => "Cristo Redentor", 							"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/cristo.png", 				"latitude" => "-22.952229", 	"longitude" => "-43.211424");
			$sights[2]  = array("id" => 2, 		"name" => "P&atilde;o de A&ccedil;&uacute;car", 		"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/pao-de-acucar.png", 		"latitude" => "-22.94883", 		"longitude" => "-43.157755");
			$sights[3]  = array("id" => 3, 		"name" => "Arcos da Lapa", 								"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/arcos.png", 				"latitude" => "-22.912784", 	"longitude" => "-43.179973");
			$sights[4]  = array("id" => 4, 		"name" => "Jardim Bot&acirc;nico", 						"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/jardim-botanico.png", 		"latitude" => "-22.970307", 	"longitude" => "-43.223051");
			$sights[5]  = array("id" => 5, 		"name" => "Parque Lage", 								"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/parque-lage.png", 			"latitude" => "-22.960814", 	"longitude" => "-43.212084");
			$sights[6]  = array("id" => 6, 		"name" => "Morro da Urca", 								"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/morro-da-urca.png", 		"latitude" => "-22.950569", 	"longitude" => "-43.163753");
			$sights[7]  = array("id" => 7, 		"name" => "Quinta da Boa Vista", 						"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/quinta-da-boa-vista.png", 	"latitude" => "-22.905234", 	"longitude" => "-43.226312");
			$sights[8]  = array("id" => 8, 		"name" => "Samb&oacute;dromo", 							"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/sambodromo.png", 			"latitude" => "-22.912152", 	"longitude" => "-43.196404");
			$sights[9]  = array("id" => 9, 		"name" => "Lagoa Rodrigo de Freitas", 					"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/lagoa.png", 				"latitude" => "-22.973962", 	"longitude" => "-43.218169");
			$sights[10] = array("id" => 10, 	"name" => "Copacabana", 								"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/copacabana.png", 			"latitude" => "-22.968509", 	"longitude" => "-43.179903");
			$sights[11] = array("id" => 11, 	"name" => "Obras do Maracan&atilde;",	 				"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/maracana.png", 			"latitude" => "-22.913219", 	"longitude" => "-43.227986");
			$sights[12] = array("id" => 12, 	"name" => "Engenh&atilde;o", 							"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/engenhao.png", 			"latitude" => "-22.893255", 	"longitude" => "-43.292577");
			$sights[13] = array("id" => 13, 	"name" => "Floresta da Tijuca", 						"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/floresta-da-tijuca.png", 	"latitude" => "-22.960685", 	"longitude" => "-43.273476");
			$sights[14] = array("id" => 14, 	"name" => "Teatro Municipal", 							"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/teatro-municipal.png", 	"latitude" => "-22.909419", 	"longitude" => "-43.176401");
			$sights[15] = array("id" => 15, 	"name" => "Catedral de S&atilde;o Sebasti&atilde;o", 	"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/catedral.png", 			"latitude" => "-22.910412", 	"longitude" => "-43.18109");		
			$sights[16] = array("id" => 16, 	"name" => "Santa Teresa", 								"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/santa-teresa.png", 		"latitude" => "-22.915235", 	"longitude" => "-43.187628");
			$sights[17] = array("id" => 17, 	"name" => "Igreja da Penha", 							"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/igreja-da-penha.png", 		"latitude" => "-22.845983", 	"longitude" => "-43.277885");
			$sights[18] = array("id" => 18, 	"name" => "Ipanema", 									"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/ipanema.png", 				"latitude" => "-22.986348", 	"longitude" => "-43.209382");
			$sights[19] = array("id" => 19, 	"name" => "Planet&aacute;rio da G&aacute;vea", 			"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/planetario.png", 			"latitude" => "-22.978954", 	"longitude" => "-43.230255");
			$sights[20] = array("id" => 20, 	"name" => "Vista Chinesa", 								"description" => "bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla", 	"miniatureURL" => getImageFolderUrl('tour') . MINIATURE_FOLDER . "/vista-chinesa.png", 		"latitude" => "-22.973171", 	"longitude" => "-43.250388");
			header("Status: 200 Success", true, 200);
			return $sights[$request->getArgs['id']];
		}
		
	}

?>